package cn.zhoabab.study.seata.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;

@EnableAutoDataSourceProxy
@EnableTransactionManagement
@EnableFeignClients(basePackages = "cn.zhoabab.study.seata")
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan(basePackages = {"cn.zhoabab.study.seata.order.dao"})
public class OrderServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderServiceApplication.class,args);
    }
}
